import request from '@/api/request'

function getList(kv){
  return request({
    url:'/admin/xy/news/list',
    method:'GET',
    kv
  })
}
function saveNews(kv){
  return request({
    url:'/admin/xy/news/save',
    method:'POST',
    kv
  })
}
function updateNews(kv){
  return request({
    url:"/admin/xy/news/update",
    method:'POST',
    kv
  })
}
function detailNews(kv){
  return request({
    url:'/admin/xy/news/detail',
    method:'GET',
    kv
  })
}
function delNews(kv){
  return request({
    url:'/admin/xy/news/del',
    method:'GET',
    kv
  })
}

export default {
  getList,
  saveNews,
  updateNews,
  detailNews,
  delNews

}
